package com.itheima01;

public class Subway {
    private String subwayId;
    private String subwayName;
    private String way;

    public Subway() {
    }

    public Subway(String subwayId, String subwayName, String way) {
        this.subwayId = subwayId;
        this.subwayName = subwayName;
        this.way = way;
    }

    public String getSubwayId() {
        return subwayId;
    }

    public void setSubwayId(String subwayId) {
        this.subwayId = subwayId;
    }

    public String getSubwayName() {
        return subwayName;
    }

    public void setSubwayName(String subwayName) {
        this.subwayName = subwayName;
    }

    public String getWay() {
        return way;
    }

    public void setWay(String way) {
        this.way = way;
    }

    @Override
    public String toString() {
        return "Subway{" +
                "subwayId='" + subwayId + '\'' +
                ", subwayName='" + subwayName + '\'' +
                ", way='" + way + '\'' +
                '}';
    }
}
